const mongoose = require('mongoose');
// const dbURI = 'mongodb://192.168.43.186:27017/Pets';  // 其中 test 为连接的数据库名称
const dbURI = 'mongodb://127.0.0.1/Pets';  // 其中 Pets 为连接的数据库名称
mongoose.connect(dbURI, {useNewUrlParser: true});
mongoose.connection.on('connected', function() {  
    console.log('Mongoose connected to ' + dbURI);
});

require("./models/goodsModel");
require("./models/applyModel");
require("./models/usersModel");
require("./models/addressesModel");
require("./models/shopsModel");

//段华蓉的模型
require("./models/orderGoodsModel")
require("./models/ordersModel")
require("./models/userCartModel")